home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch17 / 17fig13.wrl < prev    next >
Text File  |  1996-09-23  |  517b  |  25 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Shape {
  6.     appearance Appearance {
  7.         material Material { }
  8.         texture PixelTexture {
  9.             image 1 2 3       # width, height, 3-byte RGB image
  10.                 0xFFFF00  # yellow at the bottom
  11.                 0xFF0000  # red at the top
  12.         }
  13.     }
  14.     geometry IndexedFaceSet {
  15.         coord Coordinate {
  16.             point [
  17.                 -1.5 -1.0 0.0,   1.5 -1.0 0.0,
  18.                  1.5  1.0 0.0,  -1.5  1.0 0.0,
  19.             ]
  20.         }
  21.         coordIndex [ 0, 1, 2, 3 ]
  22.         solid FALSE
  23.     }
  24. }
  25.